<template>
  <div class="header">
    <div class="left">
      <div v-show="goBack" @click="$router.go(-1)" class="lefts">
        <img src="../../assets/Image/baxk.png" alt="">
      </div>
    </div>
    <div class="model">
      <span>{{title}}</span>
    </div>
    <div class="right"></div>
  </div>
</template>

<script>
export default {
  name: 'Header',
  data () {
    return {}
  },
  props: ['goBack', 'title']
}
</script>

<style lang="scss" scoped>
.header{
  width: 100%;
  height: 50px;
  background-color: #e11424;
  display:-webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  .left{
    width: 20%;
    height: 100%;
    .lefts{
      width: 100%;
      height: 100%;
      text-align: center;
      img{
        width: 20px;
        margin-top: 15px;
      }
    }
  }
  .model{
    width: 60%;
    height: 100%;
    text-align: center;
    span{
      color: #fff;
      font-size: 16px;
      line-height: 50px;
    }
  }
  .right{
    width: 20%;
    height: 100%;
  }
}
</style>
